package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShopCartMapper {
    ShoppingCart selectById(Long dishId, Long userId);

    List<ShoppingCart> list(ShoppingCart shoppingCart);

    void updateNumberById(ShoppingCart shoppingCart);

    void insert(ShoppingCart shoppingCart);

    List<ShoppingCart> lists(Long userId);

    void clean(Long userId);

    void deleteById(Long id);

    void insertBath(List<ShoppingCart> prams);
}
